<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>My JSP 'login.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript"></script>
<style type="text/css">
#juzhong {
	background: #D9EBF5;
	text-align: center;
	list-style-type: none
}
</style>
</head>
<body>
	<c:choose>
		<c:when test="${!empty newsList}">
	<table border="1" align="center" width="500">
		<tr align="center">
			<td>新闻编号</td>
			<td>新闻内容</td>
			<td>发布时间</td>
			<td>浏览人数</td>
			<td colspan="2">操作</td>
		</tr>
		<c:forEach items="${newsList}" var="news">
			<tr align="center">
				<td>${news.test}</td>
				<td><a href="#">删除</a>
				</td>
				<td><a href="#">修改</a>
				</td>
			</tr>
		</c:forEach>
	</table>
	</c:when>
		<c:otherwise>
		<c:out value="集合是空"></c:out>
		</c:otherwise>
	</c:choose>
</body>
</html>


